'use strict';

class BaseError extends Error {

  constructor(status = 500, code = 'Error', message = 'Error') {
    super(message);
    this.status = status;
    this.message = message;
    this.code = code;
  }

}

module.exports = BaseError;